﻿using IDAL;
using Microsoft.EntityFrameworkCore;
using Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace DAL
{
    public class DepartmentInfoDAL : BaseDeleteDAL<DepartmentInfo>, IDepartmentInfoDAL
    {
        private UnmanContexts _dbContext;

        public DepartmentInfoDAL(
            UnmanContexts dbContext
            ) : base(dbContext)
        {
            _dbContext = dbContext;
        }

        /// <summary>
        /// 获取用户表所有数据
        /// </summary>
        /// <returns></returns>
        public DbSet<DepartmentInfo> GetDepartmentInfos()
        {
            // RepositorySysDbContext _dbContext = new RepositorySysDbContext();
            return _dbContext.DepartmentInfo;

        }


    }
    
}
